<?php /* Smarty version 2.6.20, created on 2011-08-29 18:37:14
         compiled from /home/users/surfaceweb/public_html/sosjob/modules/search/views/searchPerson.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'truncate', '/home/users/surfaceweb/public_html/sosjob/modules/search/views/searchPerson.tpl', 123, false),)), $this); ?>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
<script type="text/javascript" src="<?php echo $this->_tpl_vars['url']; ?>
public/js/googleAuto/lib/jquery.autocomplete_geomod.js"></script>
<script type="text/javascript" src="<?php echo $this->_tpl_vars['url']; ?>
public/js/googleAuto/geo_autocomplete.js"></script> 
<link rel="stylesheet" type="text/css" href="<?php echo $this->_tpl_vars['url']; ?>
public/js/googleAuto/lib/jquery.autocomplete.css" />
<?php echo '
<script type="text/javascript">
var siteAddress = "'; ?>
<?php echo $this->_tpl_vars['site_address']; ?>
<?php echo '";
jQuery(document).ready(function() {
    var data = "'; ?>
<?php echo $this->_tpl_vars['autoData']; ?>
<?php echo '".split(",");
    $("#kogo_szukasz").autocomplete(data);
    $(\'#location\').geo_autocomplete(new google.maps.Geocoder, {
        mapkey: \'ABQIAAAAHy-4chTxWi7fRAXj5xfkGRTVeRltro6I6Asm8fjVGF4U7FNUOBQyKduIHYGVXdJcpJrs6BUDWFe7Wg\', 
        selectFirst: false,
        minChars: 3,
        cacheLength: 50,
        width: 300,
        scroll: true,
        scrollHeight: 330
    }).result(function(_event, _data) {
    });
});
</script>
'; ?>


				<div id="szukajMainContent">
					<form method="post" action="<?php echo $this->_tpl_vars['url']; ?>
znajdz-osobe">
                        <ul class="listSearchForm">
                            <li>
                                <input id="kogo_szukasz" class="searchSmallInput" type="text" name="lookingPerson" value="<?php echo $this->_tpl_vars['lookingPerson']; ?>
" />  
                            </li>
                            <li>
                                <input class="searchSmallInput ac_input" type="text" id="location" name="address" value="<?php echo $this->_tpl_vars['address']; ?>
" type="text" autocomplete="off"/>
                            </li>
                            <li>
                                <select name="when" id="whenWork">
                                    <option value="na dziś">na dziś</option>
                                    <option value="na jutro">na jutro</option>
                                    <option value="za 2 dni">za 2 dni</option>
                                    <option value="za 3 dni">za 3 dni</option>
                                    <option value="za tydzień">za tydzień</option>
                                </select>
                            </li>
                            <li>
                                <input class="buttonActionMain ml-20" type="submit" name="search" value="Szukaj" />
                            </li>
                        </ul>
					</form>
					<div id="map_canvas">
					</div>
					<a id="pokaz_w_siatce" href="javascript:;" title="Pokaż w siatce">Pokaż w siatce &raquo;</a>
					<ul class="oferty">
                        <?php echo '
                        <script type="text/javascript">
                            if (GBrowserIsCompatible()) 
                                    {
                                        var map = new GMap2(document.getElementById("map_canvas"));
                                        var burnsvilleMN = new GLatLng('; ?>
<?php echo $this->_tpl_vars['pLat']; ?>
<?php echo ', '; ?>
<?php echo $this->_tpl_vars['pLon']; ?>
<?php echo '); 
                                        map.setCenter(burnsvilleMN, 12);  
                                        map.addControl(new GLargeMapControl());
                                        map.addControl(new GOverviewMapControl()); 
                                        map.addControl(new GScaleControl());
                                        map.addControl(new GLargeMapControl());        
                                        map.addControl(new GMapTypeControl());
                                 
                                        var bounds = map.getBounds();
                                        var southWest = bounds.getSouthWest();
                                        var northEast = bounds.getNorthEast();
                                        var lngSpan = northEast.lng() - southWest.lng();
                                        var latSpan = northEast.lat() - southWest.lat();
                                        
                                        var searchMarkers = [];
                                        for(i=1; i<100; i++)
                                        {
                                            searchMarkers.push(i);
                                        }
                                 }
                                 var markerIconAddr = new GIcon(G_DEFAULT_ICON);
                                 markerIconAddr.image = siteAddress + "public/icons/markers/blueNormalFont/blank.png";
                                 markerOptionsAddr = {icon: markerIconAddr};
                                 var markerAddr = new GMarker(burnsvilleMN, markerOptionsAddr);
                                 map.addOverlay(markerAddr);
                                 GEvent.addListener(markerAddr, "click", function()
                                    {
                                        $(\'<div>Twoja lokalizacja<div>\').dialog({
                                            buttons: {\'ok\': function(){$(this).dialog("close");}},
                                            resizable: false
                                        })
                                    });
                                </script>
                        '; ?>

                        <?php if ($this->_tpl_vars['workers']): ?>
                        <form style="margin: 0px;" action="<?php echo $this->_tpl_vars['url']; ?>
wyslij-smsy" name="sendAllSms" method="post">  
                        <?php $_from = $this->_tpl_vars['workers']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['searchW'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['searchW']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['value']):
        $this->_foreach['searchW']['iteration']++;
?>
                            <?php echo '
                                <script type="text/javascript">
                                        var point = new GLatLng('; ?>
<?php echo $this->_tpl_vars['value']['lat']; ?>
<?php echo ','; ?>
<?php echo $this->_tpl_vars['value']['lon']; ?>
<?php echo ');
                                        var markerIcon = new GIcon(G_DEFAULT_ICON);
                                        var markerColor;
                                        '; ?>
<?php if ($this->_tpl_vars['value']['company_name'] != ""): ?><?php echo '
                                            markerColor = "redNormalFont";
                                        '; ?>
 <?php else: ?> <?php echo '
                                            markerColor = "yellowNormalFont";
                                       '; ?>
  <?php endif; ?> <?php echo '
                                        markerIcon.image = siteAddress + "public/icons/markers/"+markerColor+"/marker"+ '; ?>
<?php echo $this->_tpl_vars['value']['markerOrder']; ?>
<?php echo ' + ".png";
                                        var markerOptions = {icon: markerIcon};
                                        var marker = new GMarker(point, markerOptions);
                                        searchMarkers['; ?>
<?php echo $this->_tpl_vars['value']['id']; ?>
<?php echo '] = marker;
                                        marker.id = "markerMap_"+'; ?>
<?php echo $this->_tpl_vars['value']['id']; ?>
<?php echo ';
                                        GEvent.addListener(marker, "click", function()
                                        {
                                            '; ?>
<?php if ($this->_tpl_vars['value']['company_name'] != ""): ?><?php echo '
                                                showWholeDescription(\''; ?>
<?php echo $this->_tpl_vars['value']['description']; ?>
<?php echo '\', \''; ?>
<?php echo $this->_tpl_vars['value']['name']; ?>
<?php echo '\', \''; ?>
<?php echo $this->_tpl_vars['value']['price_per_hour']; ?>
<?php echo '\', \''; ?>
<?php echo $this->_tpl_vars['value']['price_per_service']; ?>
<?php echo '\', \''; ?>
Tak(<?php echo $this->_tpl_vars['value']['company_name']; ?>
)<?php echo '\');
                                            '; ?>
 <?php else: ?> <?php echo ' 
                                                showWholeDescription(\''; ?>
<?php echo $this->_tpl_vars['value']['description']; ?>
<?php echo '\', \''; ?>
<?php echo $this->_tpl_vars['value']['name']; ?>
<?php echo '\', \''; ?>
<?php echo $this->_tpl_vars['value']['price_per_hour']; ?>
<?php echo '\', \''; ?>
<?php echo $this->_tpl_vars['value']['price_per_service']; ?>
<?php echo '\', \''; ?>
Nie(Osoba prywatna)<?php echo '\');
                                           '; ?>
  <?php endif; ?> <?php echo ' 
                                        }); 
                                        countOfSms +=1;   
                                        map.addOverlay(marker);
                                </script>
                            '; ?>

                            <li id="workers_<?php echo $this->_tpl_vars['value']['id']; ?>
" class="s1 mb-10">
                                <?php if ($this->_tpl_vars['value']['company_name'] != ""): ?>
                                    <a style="background: url('public/icons/markers/redNormalFont/marker<?php echo $this->_tpl_vars['value']['markerOrder']; ?>
.png') no-repeat" class="companyStar" href="javascript:;" onclick="showWholeDescription('<?php echo $this->_tpl_vars['value']['description']; ?>
', '<?php echo $this->_tpl_vars['value']['name']; ?>
', '<?php echo $this->_tpl_vars['value']['price_per_hour']; ?>
', '<?php echo $this->_tpl_vars['value']['price_per_service']; ?>
', 'Tak(<?php echo $this->_tpl_vars['value']['company_name']; ?>
)')" title="<?php echo ((is_array($_tmp=$this->_tpl_vars['value']['description'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 50, "...") : smarty_modifier_truncate($_tmp, 50, "...")); ?>
"><?php echo ((is_array($_tmp=$this->_tpl_vars['value']['description'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 50, "...") : smarty_modifier_truncate($_tmp, 50, "...")); ?>
</a>
                                <?php else: ?>
                                    <a style="background: url('public/icons/markers/yellowNormalFont/marker<?php echo $this->_tpl_vars['value']['markerOrder']; ?>
.png') no-repeat" href="javascript:;" onclick="showWholeDescription('<?php echo $this->_tpl_vars['value']['description']; ?>
', '<?php echo $this->_tpl_vars['value']['name']; ?>
', '<?php echo $this->_tpl_vars['value']['price_per_hour']; ?>
', '<?php echo $this->_tpl_vars['value']['price_per_service']; ?>
', 'Nie(Osoba prywatna)')" title="<?php echo ((is_array($_tmp=$this->_tpl_vars['value']['description'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 50, "...") : smarty_modifier_truncate($_tmp, 50, "...")); ?>
"><?php echo ((is_array($_tmp=$this->_tpl_vars['value']['description'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 50, "...") : smarty_modifier_truncate($_tmp, 50, "...")); ?>
</a>
                                <?php endif; ?>
                                <input type="hidden" name="ids[]" value="<?php echo $this->_tpl_vars['value']['id']; ?>
"/>
                                <span class="fRight fs-12 fw-b c-po" onclick="removeWorker('workers_<?php echo $this->_tpl_vars['value']['id']; ?>
', '<?php echo $this->_tpl_vars['value']['id']; ?>
')">usuń</a>
                            </li>
                        <?php endforeach; endif; unset($_from); ?>
                        </form>
                        <?php endif; ?>
					</ul>
				</div>
				<div id="reasonMainContent" style="display: none;">
                            <h1>Oferty</h1>
                            <a id="back_to_search" href="" title="Powrót do wyszukiwarki">Powrót do wyszukiwarki</a>
                            <ul id="oferty">
                                <?php $_from = $this->_tpl_vars['marge']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['foo'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['foo']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['mar']):
        $this->_foreach['foo']['iteration']++;
?>
                                    <?php $_from = $this->_tpl_vars['mar']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['value']):
?>
                                            <li id="net_<?php echo $this->_tpl_vars['value']['id']; ?>
" class="s<?php echo $this->_foreach['foo']['iteration']; ?>
" >
                                        <?php if ($this->_tpl_vars['value']['company_name'] != ""): ?>
                                            <div style="cursor: pointer;" onclick="showWholeDescription('<?php echo $this->_tpl_vars['value']['description']; ?>
', '<?php echo $this->_tpl_vars['value']['name']; ?>
', '<?php echo $this->_tpl_vars['value']['price_per_hour']; ?>
', '<?php echo $this->_tpl_vars['value']['price_per_service']; ?>
', 'Tak(<?php echo $this->_tpl_vars['value']['company_name']; ?>
)<?php echo $this->_tpl_vars['offerType']; ?>
')">
                                        <?php else: ?>
                                            <div style="cursor: pointer;" onclick="showWholeDescription('<?php echo $this->_tpl_vars['value']['description']; ?>
', '<?php echo $this->_tpl_vars['value']['name']; ?>
', '<?php echo $this->_tpl_vars['value']['price_per_hour']; ?>
', '<?php echo $this->_tpl_vars['value']['price_per_service']; ?>
', 'Nie(Osoba prywatna)')">
                                        <?php endif; ?>
                                            <h2>
                                                <a title=""><?php echo $this->_tpl_vars['value']['name']; ?>
 <?php echo ((is_array($_tmp=$this->_tpl_vars['value']['surname'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 1, "...") : smarty_modifier_truncate($_tmp, 1, "...")); ?>
</a>
                                            </h2>
                                            <p>
                                                <?php echo ((is_array($_tmp=$this->_tpl_vars['value']['description'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 100, "...") : smarty_modifier_truncate($_tmp, 100, "...")); ?>

                                            </p>
                                        </div>
                                        <div class="gridBottomMarker" onclick="test">
                                            <?php if ($this->_tpl_vars['value']['company_name'] != ""): ?>
                                                <img src="public/icons/markers/redNormalFont/marker<?php echo $this->_tpl_vars['value']['markerOrder']; ?>
.png" alt="" />
                                            <?php else: ?>
                                                <img src="public/icons/markers/yellowNormalFont/marker<?php echo $this->_tpl_vars['value']['markerOrder']; ?>
.png" alt="" />
                                            <?php endif; ?>
                                            <input type="checkbox" checked="checked" style="border: 1px solid gray" />
                                        </div>
                                        <div class="gridBottomLinks">
                                            <?php if ($this->_tpl_vars['value']['company_name'] != ""): ?>
                                                <span class="gridBottomLinkShow" style="cursor: pointer;" onclick="showWholeDescription('<?php echo $this->_tpl_vars['value']['description']; ?>
', '<?php echo $this->_tpl_vars['value']['name']; ?>
', '<?php echo $this->_tpl_vars['value']['price_per_hour']; ?>
', '<?php echo $this->_tpl_vars['value']['price_per_service']; ?>
', 'Tak(<?php echo $this->_tpl_vars['value']['company_name']; ?>
)<?php echo $this->_tpl_vars['offerType']; ?>
')">zobacz &raquo;</span>
                                            <?php else: ?>
                                                <span class="gridBottomLinkShow" style="cursor: pointer;" onclick="showWholeDescription('<?php echo $this->_tpl_vars['value']['description']; ?>
', '<?php echo $this->_tpl_vars['value']['name']; ?>
', '<?php echo $this->_tpl_vars['value']['price_per_hour']; ?>
', '<?php echo $this->_tpl_vars['value']['price_per_service']; ?>
', 'Nie(Osoba prywatna)')">zobacz &raquo;</span>
                                            <?php endif; ?>
                                            <a class="f-left fw-b fs-12" href="javascript:;" onclick="removeWorker('workers_<?php echo $this->_tpl_vars['value']['id']; ?>
', '<?php echo $this->_tpl_vars['value']['id']; ?>
')" title="zobacz">usuń</a>
                                        </div>
                                     <?php endforeach; endif; unset($_from); ?>
                                </li>    
                                <?php endforeach; endif; unset($_from); ?>
                            </ul>
                            <div id="paginate">
                                <ol>
                                    <li class="prev">
                                        <a href="" title="Poprzednia stona"></a>
                                    </li>
                                    <?php $_from = $this->_tpl_vars['marge']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['pag'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['pag']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['value']):
        $this->_foreach['pag']['iteration']++;
?>
                                    <li class="s<?php echo $this->_foreach['pag']['iteration']; ?>
">
                                        <a class="<?php if ($this->_foreach['pag']['iteration'] == 1): ?>active<?php endif; ?>" href="javascript:;" title=""><?php echo $this->_foreach['pag']['iteration']; ?>
</a>
                                    </li>
                                    <?php endforeach; endif; unset($_from); ?>
                                    <li class="next">
                                        <a href="" title="Następna strona"></a>
                                    </li>
                                </ol>
                            </div>
                        </div>